import axios from 'utils/axios.js'

export function getCommentList (data, query) {
  return axios.post(`/comment/list?page=${query.page}&limit=${query.limit}`, data)
}
export function getCommentDetail (id) {
  return axios.get(`/comment/${id}`)
}
export function addComment (data) {
  return axios.post(`/comment/`, data)
}
export function delComment (id) {
  return axios.delete(`/comment/${id}`)
}
